<%@ page language="java" contentType="text/html; charset=ISO-8859-1" import="java.util.*"
    pageEncoding="ISO-8859-1" session="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="assets/css/custom1.css"/>
<title>Insert title here</title>
</head>
<body>
<table width="800" align="center">
  <tr>
    <td>
    	<div style="margin-left: 15px" > <img src="assets/images/collectiveI.jpg" height="100"> 
         </div>       
    </td>    
  </tr>
  <tr>
  	<td align="center">
	  	<div id="section" class="round">
  			<h1>Lupita Search</h1>
  			<p>
  			<form  action="principal.do" method="post">
  			  <label>Seleccione un usuario  			  
  			    <select name="users" id="users">
  			    <%  			    			   
  			  	SortedMap<Double, String> users = (SortedMap<Double, String>) request.getAttribute("users");
  			  	Map.Entry pairs;
  			  	
  			  	for (Iterator iterator = users.entrySet().iterator(); iterator.hasNext();) {
  			  		pairs  = (Map.Entry) iterator.next(); %>
  			  		 <option value="<%=pairs.getKey()%>"><%=pairs.getValue() %> </option>
  			  		  		
  				<%}%>  
  			      			    
		        </select>
		      </label>
		      <input type="submit" value="Submit" />
		     </form>
  			</p>
  			<br/>
  		</div>
  	</td>
  </tr>
  <tr>
  	<td align="center">
    	<div align="center" style="width: 75px;">
  		 
        </div> 
  	</td>
  </tr>
</table>
</body>

</html>